package com.user;

// 订单历史类

import lombok.Data;

@Data
public class OrderHistory {
    private int userId;
    private int restaurantId;
    private int orderCount;
    private double rating; // 用户对餐厅的评分

    public OrderHistory(int userId, int restaurantId, int orderCount, double rating) {
        this.userId = userId;
        this.restaurantId = restaurantId;
        this.orderCount = orderCount;
        this.rating = rating;
    }

}
